package com.wmapp.domain;

import com.wmapp.utils.Pserver;
import com.wmapp.utils.SimpleStringUtils;

/**
 * Broadcast client domain
 * @author dengl
 *
 */
public class BroadcastClient {
	private String address;
	private String dialogId;
	private String duration;
    private String h239Owner;
    
	
	public static final String[] GRID_COL_FIELDS={"dialogId","status","address","duration"};
	
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getDialogId() {
		return dialogId;
	}

	public void setDialogId(String dialogId) {
		this.dialogId = dialogId;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

    public String getStatus() {
		StringBuffer ret=new StringBuffer();
		if(h239Owner!=null && h239Owner.equals("true"))
            ret.append(SimpleStringUtils.join("<span title='$img.tip.h239owner'><img src='",Pserver.getInstance().getContextPath(),"/styles/default/images/chart.png' /></span>"));
        return ret.toString();
	}

    public String getH239Owner() {
		return h239Owner;
	}

	public void setH239Owner(String h239Owner) {
		this.h239Owner = h239Owner;
	}

}
